import { service } from '@/utils/request'

export function courses() {
    return service({
      url: `/api/dataView/courses`,
      method: 'get',
    })
}

export function newCourses() {
  return service({
    url: `/api/dataView/courses/dateNum`,
    method: 'get',
  })
}

export function ents() {
  return service({
    url: `/api/dataView/ents`,
    method: 'get',
  })
}

export function univs() {
  return service({
    url: `/api/dataView/univs`,
    method: 'get',
  })
}

export function users() {
  return service({
    url: `/api/dataView/users`,
    method: 'get',
  })
}

export function getLogs() {
  return service({
    url: `/api/logs`,
    method: 'get',
  })
}

export function addLogs(data) {
  return service({
    url: `/api/logs`,
    method: 'post',
    data: data
  })
}